package com.twu.biblioteca;

public class LibraryBook {

    private boolean bookIsReservedByUser;
    private boolean bookIsBorrowedByUser;
    private Book book;
    private User user;

    public LibraryBook(Book book, boolean reserved, boolean borrowed, User user)
    {
        this.book = book;
        this.bookIsReservedByUser = reserved;
        this.bookIsBorrowedByUser = borrowed;
        this.user = user;
    }

    public Book GetBook()
    {
        return this.book;
    }

    public void SetBook(Book newBook)
    {
        this.book = newBook;
    }

    public boolean BookIsReserved()
    {
        return this.bookIsReservedByUser;
    }

    public void SetBookReserved(boolean newStatus)
    {
        this.bookIsReservedByUser = newStatus;
    }

    public boolean BookIsBorrowed()
    {
        return this.bookIsBorrowedByUser;
    }

    public void SetBookBorrowed(boolean newStatus)
    {
        this.bookIsBorrowedByUser = newStatus;
    }

    public User GetBookUser()
    {
        return this.user;
    }

    public void SetBookUser(User newUser)
    {
        this.user = newUser;
    }

}

